package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 类SentSmsBo.java的实现描述：发送验证码入参
 *
 * @author zach
 * @Date :2020-08-28 08:41.
 */
@Getter
@Setter
@ApiModel(description = "发送验证码入参")
public class SentSmsBo {

//    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式错误")
    @ApiModelProperty(value = "手机号",required = true)
    private String mobile;

    @NotNull(message = "类型不能为空")
    @Pattern(regexp = "^register_code|login_code|reset_password_code|bind_mobile", message = "短信类型错误")
    @ApiModelProperty(value = "短信类型 register_code:注册短信, login_code:登录短信，reset_password_code:重置密码，bind_mobile:绑定手机号",required = true)
    private String type;
    @ApiModelProperty(value = "产品",hidden = true)
    private String  product;
}
